package com.ldp.designpatterns.study.builder.concreteBuilder;

import com.ldp.designpatterns.study.builder.abstractBuilder.HouseBuilder;

/**
 * @ClassName LuxuryHouseBuilder
 * @Description TODO: 建造者模式——3、具体建造者（Concrete Builder）：实现了抽象建造者定义的方法，完成了产品的构建过程。每个具体建造者负责构建特定的产品变体。
 * @Author lindipei
 * @Date 2023/10/17 15:22
 */
// 具体建造者类 - 豪华房屋
public class LuxuryHouseBuilder extends HouseBuilder {
    @Override
    public void buildFoundation() {
        house.setFoundation("Strong Foundation");
    }

    @Override
    public void buildStructure() {
        house.setStructure("Reinforced Structure");
    }

    @Override
    public void buildRoof() {
        house.setRoof("Elegant Roof");
    }

    @Override
    public void buildInterior() {
        house.setInterior("Luxury Interior");
    }
}
